

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script type="text/javascript" src="helpman_topicinit.js"></script>

<title>Operations Dialog - General [Enterprise Architect User Guide]</title>

<meta name="keywords" content="Enterprise Architect, Sparx Systems, UML, Operation,Operation Dialog, General Tab,Operation Properties, General,Operation Fast Create,State,State Entry And Exit Actions,State Machine,State Machine Entry And Exit Actions">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
  A, A:Visited
  {
    color: #00F;
  }

  A:Active, A:Hover
  {
    color: #F00;
  }

  OL
  {
    margin: 5px 0 5px 48px;
  }

  UL
  {
    margin-bottom: 3px;
    margin-top: 0;
  }

  #nsr
  {
    background-color: #D4DFFF;
  }

  #nsr A
  {
    text-decoration: none;
  }

  #mainbody
  {
    padding: 8px;
  }

  .p_BodyText
  {
    padding: 5px 0;
  }
</style>



<style type="text/css" media="screen">
  BODY
  {
    background-color: #FFFFFF;
  }

  #nsr
  {
    padding: 6px 6px 0 6px;
    border-bottom: none;
    vertical-align: top;
    z-index: 2;
    visibility: visible;
    left: 0;
    top: 0;
    position: absolute;
  }

  #mainbody
  {
    left: 0;
    top: 0;
    margin: 0;
    position: absolute;
    padding: 10px;
    overflow: auto;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
  }
</style>

<style type="text/css" media="print">
  #nsr
  {
    visibility: none;
  }

  #mainbody
  {
    overflow: visible;
  }
</style>
<script type="text/javascript" language="JavaScript" src="nonscroll.js"></script>

</head>
<body scroll="no">

<div id="page">



        <div id="content">
          <div id="content-inner">
          



  
          <div id="nsr">
            <table border="0" cellspacing="0" cellpadding="4" width="100%">
              <tr valign="top">
                <td align="left">
  


                  <p class="p_Heading1"><span class="f_Heading1">Operations Dialog - General</span></p>



  
                </td>
                <td align="right">
                  <a href="introduction.htm" onmouseover="document.images.main.src='button_main_h.gif'" onmouseout="document.images.main.src='button_main.gif'">
                    <img name="main" src="button_main.gif" border=0 alt="Return to Introduction">
                  </a>&nbsp;
    
                  <a href="operations.htm" onmouseover="document.images.prev.src='button_prev_h.gif'" onmouseout="document.images.prev.src='button_prev.gif'">
                    <img name=prev src="button_prev.gif" border=0 alt="Previous page" />
                  </a>&nbsp;
    
    
    
                  <a href="operationsdetail.htm" onmouseover="document.images.next.src='button_next_h.gif'" onmouseout="document.images.next.src='button_next.gif'">
                    <img name=next src="button_next.gif" border=0 alt="Next page" />
                  </a>
    
    
                </td>
              </tr>
            </table>
          </div>
          <div id="mainbody">
  


                <p class="p_BodyText"><span class="f_BodyText">The </span><span class="f_UIControl">Operations</span><span class="f_BodyText"> dialog has four tabs:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">General, from which you can also define <a href="operationparamters.htm">operation parameters</a></span></li>
<li><span class="f_Bulletlist1"><a href="operationsdetail.htm">Behavior</a></span></li>
<li><span class="f_Bulletlist1">Pre-conditions and Post conditions (that is, <a href="operationconstraints.htm">Constraints</a>).</span></li>
</ul>
<p class="p_BodyText"><span class="f_BodyText">The </span><span class="f_UIControl">General</span><span class="f_BodyText"> tab of the </span><span class="f_UIControl">Operations</span><span class="f_BodyText"> dialog enables you to define new operations and set the most common properties, including name, access type and return.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" width="952" bgcolor="#efeff7" style="width:952px; background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td width="952" bgcolor="#f7f7ff" style="width:952px; background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">The </span><span class="f_UIControl">General</span><span class="f_TiporNoteText"> tab can vary according to the type of element you are adding an operation to. If defining operations for a data modeling table, see the </span><span class="f_TiporNoteText" style="font-style: italic;"><a href="indexestriggers.htm">Indexes, Triggers and Check Constraints</a></span><span class="f_TiporNoteText"> topic. The following illustrations are for the operations of an Object element and a State element.</span></p>
</td>
</tr>
</table>
</div>
<p class="p_TextIndentedL2"><img src="operations-general.png" width="463" height="504" border="0" alt="Operations-General"></p>
<p class="p_TextIndentedL2"><img src="stateops.png" width="464" height="279" border="0" alt="StateOps"></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="0" border="0" style="border: none; border-spacing:0px; border-collapse: collapse;">
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="137" bgcolor="#e3e6ed" style="width:137px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Option</span></p>
</td>
<td valign="top" width="540" bgcolor="#e3e6ed" style="width:540px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Use to</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="137" style="width:137px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Name</span></p>
</td>
<td valign="top" width="540" style="width:540px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Display the selected operation name.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="137" style="width:137px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Parameters</span></p>
</td>
<td valign="top" width="540" style="width:540px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Display the parameter list. See <a href="operationparamters.htm">Operation Parameters</a> for information regarding what this string can contain.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="137" style="width:137px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Edit Parameters</span></p>
</td>
<td valign="top" width="540" style="width:540px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Open the </span><span class="f_UIControl">Parameters</span><span class="f_Tabletext"> dialog.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="137" style="width:137px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Return Type</span></p>
</td>
<td valign="top" width="540" style="width:540px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Display the data type returned by the operation.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">(Not shown for </span><span class="f_Tabletext" style="font-style: italic;">State</span><span class="f_Tabletext"> or </span><span class="f_Tabletext" style="font-style: italic;">State</span><span class="f_Tabletext"> </span><span class="f_Tabletext" style="font-style: italic;">Machine</span><span class="f_Tabletext"> elements.)</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="137" style="width:137px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">[ ... ]</span><span class="f_Tabletext"> </span><span class="f_Tabletext">(Return Type Build button)</span></p>
</td>
<td valign="top" width="540" style="width:540px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Open the <a href="instanceclassifier.htm">Set Element Classifier </a>dialog.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">(Not shown for </span><span class="f_Tabletext" style="font-style: italic;">State</span><span class="f_Tabletext"> or </span><span class="f_Tabletext" style="font-style: italic;">State</span><span class="f_Tabletext"> </span><span class="f_Tabletext" style="font-style: italic;">Machine</span><span class="f_Tabletext"> elements.)</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="137" style="width:137px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Action</span></p>
</td>
<td valign="top" width="540" style="width:540px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Define the action of the operation: </span><span class="f_MenuKeyField">do</span><span class="f_Tabletext">, </span><span class="f_MenuKeyField">exit</span><span class="f_Tabletext"> or </span><span class="f_MenuKeyField">entry</span><span class="f_Tabletext">.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">(For </span><span class="f_Tabletext" style="font-style: italic;"><a href="state.htm">State</a></span><span class="f_Tabletext"> or </span><span class="f_Tabletext" style="font-style: italic;"><a href="submachine.htm">State Machine</a></span><span class="f_Tabletext"> elements.)</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="137" style="width:137px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Scope</span></p>
</td>
<td valign="top" width="540" style="width:540px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Select </span><span class="f_Tabletext" style="font-weight: bold;">Public</span><span class="f_Tabletext">/</span><span class="f_Tabletext" style="font-weight: bold;">Protected</span><span class="f_Tabletext">/</span><span class="f_Tabletext" style="font-weight: bold;">Private</span><span class="f_Tabletext">/</span><span class="f_Tabletext" style="font-weight: bold;">Package</span><span class="f_Tabletext">.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="137" style="width:137px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Stereotype</span></p>
</td>
<td valign="top" width="540" style="width:540px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Specify an optional stereotype for this operation.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="137" style="width:137px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Concurrency</span></p>
</td>
<td valign="top" width="540" style="width:540px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Set the concurrency of the operation.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="137" style="width:137px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Alias</span></p>
</td>
<td valign="top" width="540" style="width:540px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Define an optional alias for the operation.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="137" style="width:137px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Notes</span></p>
</td>
<td valign="top" width="540" style="width:540px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Enter free text notes. You can format this text if necessary, using the </span><span class="f_UIControl"><a href="rich_text_notes_toolbar.htm">Rich Text Notes toolbar</a></span><span class="f_Tabletext"> at the top of the field.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="137" style="width:137px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Virtual/Abstract</span></p>
</td>
<td valign="top" width="540" style="width:540px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">If the operation's language is set to C++, map to the C++ </span><span class="f_Tabletext" style="font-style: italic;">Virtual</span><span class="f_Tabletext"> keyword. Otherwise this option is </span><span class="f_Tabletext" style="font-style: italic;">Abstract</span><span class="f_Tabletext">, pertaining to an abstract function.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">(Not shown for </span><span class="f_Tabletext" style="font-style: italic;">State</span><span class="f_Tabletext"> or </span><span class="f_Tabletext" style="font-style: italic;">State</span><span class="f_Tabletext"> </span><span class="f_Tabletext" style="font-style: italic;">Machine</span><span class="f_Tabletext"> elements.)</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="137" style="width:137px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Return Array</span></p>
</td>
<td valign="top" width="540" style="width:540px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Indicate that the return value is an array.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">(Not shown for </span><span class="f_Tabletext" style="font-style: italic;">State</span><span class="f_Tabletext"> or </span><span class="f_Tabletext" style="font-style: italic;">State</span><span class="f_Tabletext"> </span><span class="f_Tabletext" style="font-style: italic;">Machine</span><span class="f_Tabletext"> elements.)</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="137" style="width:137px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Synchronized</span></p>
</td>
<td valign="top" width="540" style="width:540px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Specify a code engineering flag that relates to multi threading in Java.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">(Not shown for </span><span class="f_Tabletext" style="font-style: italic;">State</span><span class="f_Tabletext"> or </span><span class="f_Tabletext" style="font-style: italic;">State</span><span class="f_Tabletext"> </span><span class="f_Tabletext" style="font-style: italic;">Machine</span><span class="f_Tabletext"> elements.)</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="137" style="width:137px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Static</span></p>
</td>
<td valign="top" width="540" style="width:540px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Indicate that the operation is a static member.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">(Not shown for </span><span class="f_Tabletext" style="font-style: italic;">State</span><span class="f_Tabletext"> or </span><span class="f_Tabletext" style="font-style: italic;">State</span><span class="f_Tabletext"> </span><span class="f_Tabletext" style="font-style: italic;">Machine</span><span class="f_Tabletext"> elements.)</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="137" style="width:137px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Const</span></p>
</td>
<td valign="top" width="540" style="width:540px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Indicate that the return type of this method is constant.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">(Not shown for </span><span class="f_Tabletext" style="font-style: italic;">State</span><span class="f_Tabletext"> or </span><span class="f_Tabletext" style="font-style: italic;">State</span><span class="f_Tabletext"> </span><span class="f_Tabletext" style="font-style: italic;">Machine</span><span class="f_Tabletext"> elements.)</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="137" style="width:137px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Pure</span></p>
</td>
<td valign="top" width="540" style="width:540px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Indicate that C++ is pure virtual syntax - e.g.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">virtual void myFunction( ) = 0;</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">(Not shown for </span><span class="f_Tabletext" style="font-style: italic;">State</span><span class="f_Tabletext"> or </span><span class="f_Tabletext" style="font-style: italic;">State</span><span class="f_Tabletext"> </span><span class="f_Tabletext" style="font-style: italic;">Machine</span><span class="f_Tabletext"> elements.)</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="137" style="width:137px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">IsQuery</span></p>
</td>
<td valign="top" width="540" style="width:540px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Indicate that this method does not modify the object.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">(Not shown for </span><span class="f_Tabletext" style="font-style: italic;">State</span><span class="f_Tabletext"> or </span><span class="f_Tabletext" style="font-style: italic;">State</span><span class="f_Tabletext"> </span><span class="f_Tabletext" style="font-style: italic;">Machine</span><span class="f_Tabletext"> elements.)</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="137" style="width:137px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_UIControl">Operations</span></p>
</td>
<td valign="top" width="540" style="width:540px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">List the defined operations.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="137" style="width:137px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Up/Down Buttons</span></p>
</td>
<td valign="top" width="540" style="width:540px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Change the order of operations in the list.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="137" style="width:137px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">New</span></p>
</td>
<td valign="top" width="540" style="width:540px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Create a new operation.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="137" style="width:137px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Copy</span></p>
</td>
<td valign="top" width="540" style="width:540px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Copy the currently selected operation.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="137" style="width:137px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Save</span></p>
</td>
<td valign="top" width="540" style="width:540px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Save a new operation, or save modified details for existing operation.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="137" style="width:137px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Delete</span></p>
</td>
<td valign="top" width="540" style="width:540px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Delete the currently selected operation.</span></p>
</td>
</tr>
</table>
</div>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" width="952" bgcolor="#efeff7" style="width:952px; background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td width="952" bgcolor="#f7f7ff" style="width:952px; background-color:#f7f7ff;"><ul style="text-indent: 0px; margin-left: 14px; list-style-position: outside;">
<li><span class="f_TiporNoteText">If you make changes and do not save them, the </span><span class="f_MenuKeyField">Cancel</span><span class="f_TiporNoteText"> button prompts you to confirm or cancel the changes, whilst the </span><span class="f_MenuKeyField">Close</span><span class="f_TiporNoteText"> button closes the dialog immediately and does not save the changes.</span></li>
</ul>
<ul style="text-indent: 0px; margin-left: 14px; list-style-position: outside;">
<li><span class="f_TiporNoteText">If you are creating many operations, go to the </span><span class="f_UIControl">Attribute/Operations</span><span class="f_TiporNoteText"> page of the </span><span class="f_UIControl">Options</span><span class="f_TiporNoteText"> dialog (</span><span class="f_MenuKeyField">Tools | Options | Source Code Engineering | Attribute/Operations</span><span class="f_TiporNoteText">) and select the </span><span class="f_MenuKeyField">After save, re-select edited item</span><span class="f_TiporNoteText"> checkbox. Now, when you create an operation and click on the </span><span class="f_MenuKeyField">Save</span><span class="f_TiporNoteText"> button, the dialog fields clear ready for you to enter the details of the next operation. This helps you when you want to create operations quickly and might not necessarily want to fully define each one as you create it.</span></li>
</ul>
</td>
</tr>
</table>
</div>




            </div>
          </div>
        </div>



</div>


</body>
</html>
